package net.atos.spring.animals;

import javax.persistence.Entity;

@Entity
public class Bird extends Animal {

    private Integer maxAltitude;

    public static Bird withNameAndMaxAltitude(String name, Integer maxAltitude) {
	return new Bird(name, maxAltitude);
    }

    private Bird(String string, Integer maxAltitude) {
	super(string);
    }

    public Integer getMaxAltitude() {
	return maxAltitude;
    }

    public void setMaxAltitude(Integer maxAltitude) {
	this.maxAltitude = maxAltitude;
    }
}
